package com.leoman.work.service;

import com.leoman.common.service.GenericManager;
import com.leoman.work.entity.Work;
import com.leoman.work.entity.WorkVideo;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by 蔡琦 on 2016/6/16 0016.
 *
 */
public interface WorkVideoService extends GenericManager<WorkVideo>{

    // 根据作品id查询对应的视频续集列表
    List<WorkVideo> findByWorkId(Long workId);

    // 视频续集列表（分页）
    Page<WorkVideo> page(Long workId, Integer pageNum, Integer pageSize);

    WorkVideo findOneById(Long workVideoId);
}
